package com.zg.scf.web;

import com.zg.common.core.R;
import com.zg.scf.domain.req.img.ImgConditionAddReq;
import com.zg.scf.domain.vo.ImgConfigVo;
import com.zg.scf.service.ImgConditionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import java.util.List;

/**
 * DESCRIPTION
 *
 * @author zhanfeng.liang
 * @since 2025-07-25
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/img/condition")
@Slf4j
@Api(tags = "画像条件")
public class ImgConditionController {

    private final ImgConditionService imgConditionService;
    @PostMapping("/add")
    @ApiOperation(value = "新增")
    public R add(@RequestBody @Valid ImgConditionAddReq addReq) {
        imgConditionService.add(addReq);
        return R.success();
    }
}
